package qimao.com.edu.entity;

import jakarta.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * 作品大类表
 * @author 86173
 *
 */
//@Entity
//@Table(name = "category_major")
public class CategoryMajor {
	/**
	 * 大类id
	 */
//    @Id
//    @Column(name = "major_id", nullable = false)
    private Integer majorId;
    /**
	 * 大类名
	 */
//    @Column(name = "major_name", nullable = false, length = 50, unique = true)
    private String majorName;
    
	public CategoryMajor() {
		super();
	}
	
	public CategoryMajor(Integer majorId, String majorName) {
		super();
		this.majorId = majorId;
		this.majorName = majorName;
	}

	public Integer getMajorId() {
		return majorId;
	}

	public void setMajorId(Integer majorId) {
		this.majorId = majorId;
	}

	public String getMajorName() {
		return majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}

	@Override
	public String toString() {
		return "CategoryMajor [majorId=" + majorId + ", majorName=" + majorName + "]";
	}
    
    
}
